package cn.ylz.ylmall.account.dao.persist.mapper;

import cn.ylz.ylmall.account.pojo.entity.RolePermission;
import cn.ylz.ylmall.account.pojo.vo.UserPermissionVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    int insertBatch(List<RolePermission> rolePermissionList);

    List<UserPermissionVO> getPermissionByRoleId(Long roleId);
}
